package pojo;

import java.util.Objects;

public class TbShoppingcar {
    private Integer shoppingcarId;
    private String phoneName;
    private Double shoppingPrice;
    private String phonePic;
    private Integer userId;
    private String selectDetail;
    private Integer phoneId;
    private TbUser tbUserByUserId;

    public Integer getShoppingcarId() {
        return shoppingcarId;
    }

    public void setShoppingcarId(Integer shoppingcarId) {
        this.shoppingcarId = shoppingcarId;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public Double getShoppingPrice() {
        return shoppingPrice;
    }

    public void setShoppingPrice(Double shoppingPrice) {
        this.shoppingPrice = shoppingPrice;
    }

    public String getPhonePic() {
        return phonePic;
    }

    public void setPhonePic(String phonePic) {
        this.phonePic = phonePic;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSelectDetail() {
        return selectDetail;
    }

    public void setSelectDetail(String selectDetail) {
        this.selectDetail = selectDetail;
    }

    public Integer getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(Integer phoneId) {
        this.phoneId = phoneId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbShoppingcar that = (TbShoppingcar) o;
        return Objects.equals(shoppingcarId, that.shoppingcarId) &&
                Objects.equals(phoneName, that.phoneName) &&
                Objects.equals(shoppingPrice, that.shoppingPrice) &&
                Objects.equals(phonePic, that.phonePic) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(selectDetail, that.selectDetail) &&
                Objects.equals(phoneId, that.phoneId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(shoppingcarId, phoneName, shoppingPrice, phonePic, userId, selectDetail, phoneId);
    }

    public TbUser getTbUserByUserId() {
        return tbUserByUserId;
    }

    public void setTbUserByUserId(TbUser tbUserByUserId) {
        this.tbUserByUserId = tbUserByUserId;
    }
}
